//
//  ViewOfLayout.m
//  UI16_UICollectionViewHomeWork
//
//  Created by dllo on 16/3/30.
//  Copyright © 2016年 XWH. All rights reserved.
//

#import "ViewOfLayout.h"
#import "Header.h"
@implementation ViewOfLayout

-(instancetype)init{
    
    self = [super init];
    if (self) {
        
        self.itemSize = CGSizeMake((SCREEN_WIDTH - 40) / 2.0, ((SCREEN_WIDTH - 80) / 3.0) * 0.618);
        
        self.minimumInteritemSpacing = 20;
        self.minimumLineSpacing = 20;
        
        self.sectionInset = UIEdgeInsetsMake(10, 10, 10, 10);
        self.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        
    }
    
    return self;
    
}


@end
